When being run as a Wayland compositor, raise the NOFILE limit to
mitigate the risk of running out of file descriptors.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2117>
shell_profiler_init ();
+ if (meta_context_get_compositor_type (context) == META_COMPOSITOR_TYPE_WAYLAND)
+ meta_context_raise_rlimit_nofile (context, NULL);
+
if (!meta_context_start (context, &error))
{
g_printerr ("GNOME Shell failed to start: %s", error->message);